package com.my.zl.console;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;

/**
 * 通过@ImportResource导入XML
 * @author Administrator
 *
 */
@ImportResource({ "classpath:spring/spring-all.xml" })
@Import(cn.hutool.extra.spring.SpringUtil.class)
@EnableAsync
@EnableTransactionManagement
@EnableDiscoveryClient  //激活eureka中的DiscoveryClient实现
@SpringBootApplication(exclude = PageHelperAutoConfiguration.class)
public class AutocodeApplication{
	public static void main(String[] args) {
		SpringApplication.run(AutocodeApplication.class, args);
	}
}
